package com.kehutong.payfees.entity;

import java.time.LocalDateTime;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

import com.kehutong.payfees.enums.BillCallMethod;

/**
 * Author:  peter
 * Date:    2020/7/25
 * Function:
 */
@Table(value = "t_charge_call_task", comment="催缴任务", multi = true)
public class ChargeCallTask extends Entity {

    private static final long serialVersionUID = -7809601074269616729L;

    protected ChargeCallTask(String id) {
        super(id);
    }

    @Column(comment = "所属账单编号")
    private String billNo;

    @Column(comment = "最后操作人")
    private String operatorName;

    @Column(comment = "催缴方式")
    private BillCallMethod callMethod;

    @Column(comment = "配置催缴时间")
    private LocalDateTime configCallAt;

    @Column(comment = "运行标记")
    private boolean run;

    @Column(comment = "需发送人数")
    private int toCallCnt;

    @Column(comment = "已发送人数")
    private int calledCnt;

    @Column(comment = "企业群发消息的id，可用于获取群发消息发送结果")
    private String workMsgId;

    public String getBillNo() {
        return billNo;
    }

    public void setBillNo(String billNo) {
        this.billNo = billNo;
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }

    public BillCallMethod getCallMethod() {
        return callMethod;
    }

    public void setCallMethod(BillCallMethod callMethod) {
        this.callMethod = callMethod;
    }

    public LocalDateTime getConfigCallAt() {
        return configCallAt;
    }

    public void setConfigCallAt(LocalDateTime configCallAt) {
        this.configCallAt = configCallAt;
    }

    public boolean isRun() {
        return run;
    }

    public void setRun(boolean run) {
        this.run = run;
    }

    public int getToCallCnt() {
        return toCallCnt;
    }

    public void setToCallCnt(int toCallCnt) {
        this.toCallCnt = toCallCnt;
    }

    public int getCalledCnt() {
        return calledCnt;
    }

    public void setCalledCnt(int calledCnt) {
        this.calledCnt = calledCnt;
    }

    public String getWorkMsgId() {
        return workMsgId;
    }

    public void setWorkMsgId(String workMsgId) {
        this.workMsgId = workMsgId;
    }
}
